#include<stdio.h>
#define min 60;
int main()
{
	int i=0;
	int hour,mintues;
	scanf("%d",&i);
		while(i>0)
		{
		hour =i/min;
		mintues=i%min;
		printf("%d.%d",hour,mintues);
		scanf("%d",&i);
		}
	return 0;
}
